package com.ruoyi.transaction.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.transaction.mapper.RiderOrderMapper;
import com.ruoyi.transaction.domain.RiderOrder;
import com.ruoyi.transaction.service.IRiderOrderService;

/**
 * 骑手订单配送记录Service业务层处理
 * 
 * @author swy
 * @date 2025-08-07
 */
@Service
public class RiderOrderServiceImpl implements IRiderOrderService 
{
    @Autowired
    private RiderOrderMapper riderOrderMapper;

    /**
     * 查询骑手订单配送记录
     * 
     * @param id 骑手订单配送记录主键
     * @return 骑手订单配送记录
     */
    @Override
    public RiderOrder selectRiderOrderById(Integer id)
    {
        return riderOrderMapper.selectRiderOrderById(id);
    }

    /**
     * 查询骑手订单配送记录列表
     * 
     * @param riderOrder 骑手订单配送记录
     * @return 骑手订单配送记录
     */
    @Override
    public List<RiderOrder> selectRiderOrderList(RiderOrder riderOrder)
    {
        return riderOrderMapper.selectRiderOrderList(riderOrder);
    }

    /**
     * 新增骑手订单配送记录
     * 
     * @param riderOrder 骑手订单配送记录
     * @return 结果
     */
    @Override
    public int insertRiderOrder(RiderOrder riderOrder)
    {
        return riderOrderMapper.insertRiderOrder(riderOrder);
    }

    /**
     * 修改骑手订单配送记录
     * 
     * @param riderOrder 骑手订单配送记录
     * @return 结果
     */
    @Override
    public int updateRiderOrder(RiderOrder riderOrder)
    {
        return riderOrderMapper.updateRiderOrder(riderOrder);
    }

    /**
     * 批量删除骑手订单配送记录
     * 
     * @param ids 需要删除的骑手订单配送记录主键
     * @return 结果
     */
//    @Override
//    public int deleteRiderOrderByIds(Integer[] ids)
//    {
//        return riderOrderMapper.deleteRiderOrderByIds(ids);
//    }
    @Override
    public int deleteRiderOrderByIds(Integer[] ids) {
        return riderOrderMapper.deleteRiderOrderByIds(ids);
    }

    /**
     * 删除骑手订单配送记录信息
     * 
     * @param id 骑手订单配送记录主键
     * @return 结果
     */
//    @Override
//    public int deleteRiderOrderById(Integer id)
//    {
//        return riderOrderMapper.deleteRiderOrderById(id);
//    }
    @Override
    public int deleteRiderOrderById(Integer id) {
        return riderOrderMapper.deleteRiderOrderById(id);
    }
}
